package cameraClass.uweTronnier.fhkl.de;

import android.app.Activity;
import android.os.Bundle;

public class CameraClassActivity extends Activity {
    /** Called when the activity is first created. */
	public CamSurfaceHolder	camSurface;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        camSurface = (CamSurfaceHolder) findViewById(R.id.camSurface);
    }
    
	@Override
	public void onPause(){
		if(camSurface!=null){
			camSurface.releaseCam();
		}
		super.onPause();
	}
	
	@Override
	public void onResume(){
		super.onResume();
		if(camSurface!=null){
			camSurface.reOpenCam();
		}
	}
}